package com.example.pei.ithinklearnt.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by Pei on 2017/12/2.
 */

public class ToastUtil {
    public static void ToastShow(Context context,String string,int time){
        if(time==0){
            Toast.makeText(context,string,Toast.LENGTH_SHORT).show();
        }else {
            Toast.makeText(context,string,Toast.LENGTH_LONG).show();
        }
    }
}
